<div class="list">
    <table>
        <thead>
            <tr>
                <th><g:message code="inventory.product" default="Product" /></th>
                <th><g:message code="inventory.warehouse" default="Warehouse" /></th>
                <g:sortableColumn property="unit" title="Unit" titleKey="inventory.unit" />
                <g:sortableColumn property="quantity" title="Quantity" titleKey="inventory.quantity" class="number"/>
                <g:sortableColumn property="available" title="Available" titleKey="inventory.available" class="number"/>
                <g:sortableColumn property="amount" title="Amount" titleKey="inventory.amount" class="number"/>
            </tr>
        </thead>
        <tbody>
        <g:each in="${inventoryInstanceList}" status="i" var="inventoryInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td>${fieldValue(bean: inventoryInstance, field: "product")}</td>
                <td>${fieldValue(bean: inventoryInstance, field: "warehouse")}</td>
                <td>${fieldValue(bean: inventoryInstance, field: "unit")}</td>
                <td class="number">
                    <g:formatNumber number="${inventoryInstance.quantity}" format="###,##0.00" />
                </td>
                <td class="number">
                    <g:formatNumber number="${inventoryInstance.available}" format="###,##0.00" />
                </td>
                <td class="number"><g:formatNumber number="${inventoryInstance.amount}" format="###,##0.00"/></td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
